﻿using Idlesoft.Utils;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Data;
using System.Collections.Generic;

namespace UtilsTests
{
    
    
    /// <summary>
    ///This is a test class for DataExtensionsTest and is intended
    ///to contain all DataExtensionsTest Unit Tests
    ///</summary>
	[TestClass()]
	public class DataExtensionsTest
	{


		private TestContext testContextInstance;

		/// <summary>
		///Gets or sets the test context which provides
		///information about and functionality for the current test run.
		///</summary>
		public TestContext TestContext
		{
			get
			{
				return testContextInstance;
			}
			set
			{
				testContextInstance = value;
			}
		}

		#region Additional test attributes
		// 
		//You can use the following additional attributes as you write your tests:
		//
		//Use ClassInitialize to run code before running the first test in the class
		//[ClassInitialize()]
		//public static void MyClassInitialize(TestContext testContext)
		//{
		//}
		//
		//Use ClassCleanup to run code after all tests in a class have run
		//[ClassCleanup()]
		//public static void MyClassCleanup()
		//{
		//}
		//
		//Use TestInitialize to run code before running each test
		//[TestInitialize()]
		//public void MyTestInitialize()
		//{
		//}
		//
		//Use TestCleanup to run code after each test has run
		//[TestCleanup()]
		//public void MyTestCleanup()
		//{
		//}
		//
		#endregion


		/// <summary>
		///A test for ColumnNames
		///</summary>
		[TestMethod()]
		public void ColumnNamesTest()
		{
			DataTable dt = null; // TODO: Initialize to an appropriate value
			string[] expected = null; // TODO: Initialize to an appropriate value
			string[] actual;
			actual = DataExtensions.ColumnNames(dt);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for ColumnNames
		///</summary>
		[TestMethod()]
		public void ColumnNamesTest1()
		{
			DataColumnCollection dcc = null; // TODO: Initialize to an appropriate value
			string[] expected = null; // TODO: Initialize to an appropriate value
			string[] actual;
			actual = DataExtensions.ColumnNames(dcc);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for ForEach
		///</summary>
		[TestMethod()]
		public void ForEachTest()
		{
			DataColumn dc = null; // TODO: Initialize to an appropriate value
			Action<object> action = null; // TODO: Initialize to an appropriate value
			DataExtensions.ForEach(dc, action);
			Assert.Inconclusive("A method that does not return a value cannot be verified.");
		}

		/// <summary>
		///A test for ForEach
		///</summary>
		[TestMethod()]
		public void ForEachTest1()
		{
			DataRowCollection drc = null; // TODO: Initialize to an appropriate value
			Action<DataRow> action = null; // TODO: Initialize to an appropriate value
			DataExtensions.ForEach(drc, action);
			Assert.Inconclusive("A method that does not return a value cannot be verified.");
		}

		/// <summary>
		///A test for ForEach
		///</summary>
		[TestMethod()]
		public void ForEachTest2()
		{
			DataRow dr = null; // TODO: Initialize to an appropriate value
			Action<object> action = null; // TODO: Initialize to an appropriate value
			DataExtensions.ForEach(dr, action);
			Assert.Inconclusive("A method that does not return a value cannot be verified.");
		}

		/// <summary>
		///A test for ForEach
		///</summary>
		[TestMethod()]
		public void ForEachTest3()
		{
			DataTable dt = null; // TODO: Initialize to an appropriate value
			Action<DataRow> action = null; // TODO: Initialize to an appropriate value
			DataExtensions.ForEach(dt, action);
			Assert.Inconclusive("A method that does not return a value cannot be verified.");
		}

		/// <summary>
		///A test for ForEach
		///</summary>
		[TestMethod()]
		public void ForEachTest4()
		{
			DataSet ds = null; // TODO: Initialize to an appropriate value
			Action<DataTable> action = null; // TODO: Initialize to an appropriate value
			DataExtensions.ForEach(ds, action);
			Assert.Inconclusive("A method that does not return a value cannot be verified.");
		}

		/// <summary>
		///A test for ForEach
		///</summary>
		[TestMethod()]
		public void ForEachTest5()
		{
			DataTableCollection dtc = null; // TODO: Initialize to an appropriate value
			Action<DataTable> action = null; // TODO: Initialize to an appropriate value
			DataExtensions.ForEach(dtc, action);
			Assert.Inconclusive("A method that does not return a value cannot be verified.");
		}

		/// <summary>
		///A test for ForEachCol
		///</summary>
		[TestMethod()]
		public void ForEachColTest()
		{
			DataColumnCollection dcc = null; // TODO: Initialize to an appropriate value
			Action<DataColumn> action = null; // TODO: Initialize to an appropriate value
			DataExtensions.ForEachCol(dcc, action);
			Assert.Inconclusive("A method that does not return a value cannot be verified.");
		}

		/// <summary>
		///A test for ForEachCol
		///</summary>
		[TestMethod()]
		public void ForEachColTest1()
		{
			DataTable dt = null; // TODO: Initialize to an appropriate value
			Action<DataColumn> action = null; // TODO: Initialize to an appropriate value
			DataExtensions.ForEachCol(dt, action);
			Assert.Inconclusive("A method that does not return a value cannot be verified.");
		}

		/// <summary>
		///A test for Head
		///</summary>
		[TestMethod()]
		public void HeadTest()
		{
			DataColumn dc = null; // TODO: Initialize to an appropriate value
			object expected = null; // TODO: Initialize to an appropriate value
			object actual;
			actual = DataExtensions.Head(dc);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for Head
		///</summary>
		[TestMethod()]
		public void HeadTest1()
		{
			DataRow dr = null; // TODO: Initialize to an appropriate value
			object expected = null; // TODO: Initialize to an appropriate value
			object actual;
			actual = DataExtensions.Head(dr);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for Head
		///</summary>
		[TestMethod()]
		public void HeadTest2()
		{
			DataTable dt = null; // TODO: Initialize to an appropriate value
			DataRow expected = null; // TODO: Initialize to an appropriate value
			DataRow actual;
			actual = DataExtensions.Head(dt);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for Head
		///</summary>
		[TestMethod()]
		public void HeadTest3()
		{
			DataSet ds = null; // TODO: Initialize to an appropriate value
			DataTable expected = null; // TODO: Initialize to an appropriate value
			DataTable actual;
			actual = DataExtensions.Head(ds);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for HeadCol
		///</summary>
		[TestMethod()]
		public void HeadColTest()
		{
			DataTable dt = null; // TODO: Initialize to an appropriate value
			DataColumn expected = null; // TODO: Initialize to an appropriate value
			DataColumn actual;
			actual = DataExtensions.HeadCol(dt);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for ItemArray
		///</summary>
		[TestMethod()]
		public void ItemArrayTest()
		{
			DataColumn dc = null; // TODO: Initialize to an appropriate value
			object[] expected = null; // TODO: Initialize to an appropriate value
			object[] actual;
			actual = DataExtensions.ItemArray(dc);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for Last
		///</summary>
		[TestMethod()]
		public void LastTest()
		{
			DataSet ds = null; // TODO: Initialize to an appropriate value
			DataTable expected = null; // TODO: Initialize to an appropriate value
			DataTable actual;
			actual = DataExtensions.Last(ds);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for Last
		///</summary>
		[TestMethod()]
		public void LastTest1()
		{
			DataColumn dc = null; // TODO: Initialize to an appropriate value
			object expected = null; // TODO: Initialize to an appropriate value
			object actual;
			actual = DataExtensions.Last(dc);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for Last
		///</summary>
		[TestMethod()]
		public void LastTest2()
		{
			DataRow dr = null; // TODO: Initialize to an appropriate value
			object expected = null; // TODO: Initialize to an appropriate value
			object actual;
			actual = DataExtensions.Last(dr);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for Last
		///</summary>
		[TestMethod()]
		public void LastTest3()
		{
			DataTable dt = null; // TODO: Initialize to an appropriate value
			DataRow expected = null; // TODO: Initialize to an appropriate value
			DataRow actual;
			actual = DataExtensions.Last(dt);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for LastCol
		///</summary>
		[TestMethod()]
		public void LastColTest()
		{
			DataTable dt = null; // TODO: Initialize to an appropriate value
			DataColumn expected = null; // TODO: Initialize to an appropriate value
			DataColumn actual;
			actual = DataExtensions.LastCol(dt);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for Tail
		///</summary>
		[TestMethod()]
		public void TailTest()
		{
			DataColumn dc = null; // TODO: Initialize to an appropriate value
			IEnumerable<object> expected = null; // TODO: Initialize to an appropriate value
			IEnumerable<object> actual;
			actual = DataExtensions.Tail(dc);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for Tail
		///</summary>
		[TestMethod()]
		public void TailTest1()
		{
			DataSet ds = null; // TODO: Initialize to an appropriate value
			IEnumerable<DataTable> expected = null; // TODO: Initialize to an appropriate value
			IEnumerable<DataTable> actual;
			actual = DataExtensions.Tail(ds);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for Tail
		///</summary>
		[TestMethod()]
		public void TailTest2()
		{
			DataRow dr = null; // TODO: Initialize to an appropriate value
			IEnumerable<object> expected = null; // TODO: Initialize to an appropriate value
			IEnumerable<object> actual;
			actual = DataExtensions.Tail(dr);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for Tail
		///</summary>
		[TestMethod()]
		public void TailTest3()
		{
			DataTable dt = null; // TODO: Initialize to an appropriate value
			IEnumerable<DataRow> expected = null; // TODO: Initialize to an appropriate value
			IEnumerable<DataRow> actual;
			actual = DataExtensions.Tail(dt);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for TailCol
		///</summary>
		[TestMethod()]
		public void TailColTest()
		{
			DataTable dt = null; // TODO: Initialize to an appropriate value
			IEnumerable<DataColumn> expected = null; // TODO: Initialize to an appropriate value
			IEnumerable<DataColumn> actual;
			actual = DataExtensions.TailCol(dt);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}
	}
}
